<script setup>
const menus = [
    {
        id: '@increment',
        name: '主页',
        code: 'Index',
        path: '/index',
        icon: '',
        component: 'layout/DescPage',
    },
    {
        id: '@increment',
        name: '系统管理',
        code: 'System',
        path: '/system',
        icon: '',
        component: 'layout/DescPage',
        children: [
            {
                id: '@increment',
                name: '模块管理',
                code: 'Module',
                path: '/modules',
                icon: '',
                component: 'system/Module',
            },
            {
                id: '@increment',
                name: '角色管理',
                code: 'Role',
                path: '/roles',
                icon: '',
                component: 'system/Role',
            },
            {
                id: '@increment',
                name: '用户管理',
                code: 'User',
                path: '/users',
                icon: '',
                component: 'system/User',
            },
        ]
    },
    {
        id: '@increment',
        name: '内容管理',
        code: 'Content',
        path: '/content',
        component: 'layout/DescPage',
        children: [
            {
                id: '@increment',
                name: '分类管理',
                code: 'Category',
                path: '/category',
                icon: '',
                component: 'content/Category',
            },
            {
                id: '@increment',
                name: '标签管理',
                code: 'Tags',
                path: '/tags',
                icon: '',
                component: 'content/Tags',
            },
            {
                id: '@increment',
                name: '文章管理',
                code: 'Article',
                path: '/article',
                icon: '',
                component: 'content/Article',
            },
        ]
    }
]
</script>
<template>
  <div>
    <v-menu v-for="item in menus" :key="item.code" :menu-item="item" />
  </div>
</template>